-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_eip: deprecate vpc
attribute
#31567
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will there we a follow-up PR to update aws_eip
resources used in other service tests?
--- PASS: TestAccEC2EIP_disappears (22.62s)
--- PASS: TestAccEC2EIP_BYOIPAddress_default (24.51s)
--- PASS: TestAccEC2EIP_noVPC (26.63s)
--- PASS: TestAccEC2EIP_networkBorderGroup (26.66s)
--- PASS: TestAccEC2EIP_basic (27.47s)
--- PASS: TestAccEC2EIP_PublicIPv4Pool_default (27.67s)
--- PASS: TestAccEC2EIP_NetworkInterface_twoEIPsOneInterface (34.03s)
--- PASS: TestAccEC2EIP_networkInterface (36.04s)
--- PASS: TestAccEC2EIP_tags (48.45s)
--- PASS: TestAccEC2EIP_instance (86.77s)
--- PASS: TestAccEC2EIP_association (107.38s)
--- PASS: TestAccEC2EIP_Instance_notAssociated (123.28s)
--- PASS: TestAccEC2EIP_Instance_reassociate (125.37s)
--- PASS: TestAccEC2EIP_Instance_associatedUserPrivateIP (147.51s)
Type: schema.TypeString, | ||
Computed: true, | ||
Type: schema.TypeString, | ||
ForceNew: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this and vpc
are both marked ForceNew
, will it destroy an existing EIP if someone updates their config from vpc = true
to domain = "vpc"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call. It does not. I went ahead and added a test to verify
$ make testacc TESTS="TestAccEC2EIP_migrateVPCToDomain" PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2EIP_migrateVPCToDomain' -timeout 180m
--- PASS: TestAccEC2EIP_migrateVPCToDomain (30.98s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 34.189s
Co-authored-by: Graham Davison <gdavison@hashicorp.com>
…aform-provider-aws into td-aws_eip-depreacate-vpc
@gdavison updated all the tests and examples that use |
This functionality has been released in v5.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Relations
Closes #26714
References
Output from Acceptance Testing